﻿using Jinjia.Approve.IService.Base;
using Jinjia.Approve.Model.Input;
using Jinjia.Approve.Model.VM;
using System.Threading.Tasks;

namespace Jinjia.Approve.IService
{
    /// <summary>
    /// HelloWorld服务接口
    /// </summary>
    public interface IHelloWorldService: IBaseService
    {
        /// <summary>
        /// 插入HelloWorld
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<HelloWorldVM> InsertMysqlHelloWorld(HelloWorldCreateInput input);

        /// <summary>
        /// 读取HelloWorld
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<HelloWorldVM> ReadMysqlHelloWorld(HelloWorldSearchInput input);

        /// <summary>
        /// 发送队列消息
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="msg"></param>
        void SendMsg<T>(T msg);
    }
}